/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package componentes;

 
import java.io.Serializable;
import java.util.*;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author acazares
 * consulta [scope]: http://anadreamy.wordpress.com/2011/10/25/jsf-2-0-managed-beans-iii/
 * consulta [efectos]: http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=autoCompleteEntryBean
 */
@ManagedBean
@ViewScoped
public class Sistema implements Serializable{
    private static final long serialVersionUID = 1L;
    private String year;// ="2012";
    /**
     * Creates a new instance of Sistema
     */
    public Sistema() throws Exception { 
        Calendar toDay = Calendar.getInstance();
        year = toDay.get(Calendar.YEAR)+""; 
    }
    
    public String getYear(){        
        return year; 
    }
    
    
    
}
